Integrand size = 27, antiderivative size = 73 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {x}{a^2}-\frac {\text {arctanh}(\cos (c+d x))}{a^2 d}+\frac {\cos (c+d x)}{a^2 d}-\frac {\cos ^3(c+d x)}{3 a^2 d}-\frac {\cos (c+d x) \sin (c+d x)}{a^2 d} \]
-x/a^2-arctanh(cos(d*x+c))/a^2/d+cos(d*x+c)/a^2/d-1/3*cos(d*x+c)^3/a^2/d-c os(d*x+c)*sin(d*x+c)/a^2/d
Time = 0.77 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.95 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {-9 \cos (c+d x)+\cos (3 (c+d x))+6 \left (2 \left (c+d x+\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+\sin (2 (c+d x))\right )}{12 a^2 d} \]
-1/12*(-9*Cos[c + d*x] + Cos[3*(c + d*x)] + 6*(2*(c + d*x + Log[Cos[(c + d *x)/2]] - Log[Sin[(c + d*x)/2]]) + Sin[2*(c + d*x)]))/(a^2*d)
Time = 0.42 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.05, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3354, 3042, 3352, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a \sin (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^6}{\sin (c+d x) (a \sin (c+d x)+a)^2}dx\) |
\(\Big \downarrow \) 3354 |
\(\displaystyle \frac {\int \cos (c+d x) \cot (c+d x) (a-a \sin (c+d x))^2dx}{a^4}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\cos (c+d x)^2 (a-a \sin (c+d x))^2}{\sin (c+d x)}dx}{a^4}\) |
\(\Big \downarrow \) 3352 |
\(\displaystyle \frac {\int \left (-2 \cos ^2(c+d x) a^2+\cos (c+d x) \cot (c+d x) a^2+\cos ^2(c+d x) \sin (c+d x) a^2\right )dx}{a^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {a^2 \text {arctanh}(\cos (c+d x))}{d}-\frac {a^2 \cos ^3(c+d x)}{3 d}+\frac {a^2 \cos (c+d x)}{d}-\frac {a^2 \sin (c+d x) \cos (c+d x)}{d}-a^2 x}{a^4}\) |
(-(a^2*x) - (a^2*ArcTanh[Cos[c + d*x]])/d + (a^2*Cos[c + d*x])/d - (a^2*Co s[c + d*x]^3)/(3*d) - (a^2*Cos[c + d*x]*Sin[c + d*x])/d)/a^4
3.7.37.3.1 Defintions of rubi rules used
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig [(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* m) Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] )^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[m, 0]
Time = 0.32 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.78
method | result | size |
parallelrisch | \(\frac {-12 d x -6 \sin \left (2 d x +2 c \right )-\cos \left (3 d x +3 c \right )+9 \cos \left (d x +c \right )+12 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8}{12 d \,a^{2}}\) | \(57\) |
derivativedivides | \(\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {4 \left (-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}-\frac {1}{3}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}-2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{2}}\) | \(87\) |
default | \(\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {4 \left (-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}-\frac {1}{3}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}-2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{2}}\) | \(87\) |
risch | \(-\frac {x}{a^{2}}+\frac {3 \,{\mathrm e}^{i \left (d x +c \right )}}{8 d \,a^{2}}+\frac {3 \,{\mathrm e}^{-i \left (d x +c \right )}}{8 d \,a^{2}}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d \,a^{2}}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{d \,a^{2}}-\frac {\cos \left (3 d x +3 c \right )}{12 d \,a^{2}}-\frac {\sin \left (2 d x +2 c \right )}{2 d \,a^{2}}\) | \(115\) |
norman | \(\frac {-\frac {35 x \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {16 x \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {40 x \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {8 x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {40 x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {25 x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {35 x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {25 x \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {16 x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {8 x \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {4}{3 a d}-\frac {3 x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {x \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {x}{a}+\frac {6 \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {14 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}+\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}+\frac {76 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}-\frac {3 x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}+\frac {18 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {34 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}+\frac {24 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {68 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}+\frac {28 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {46 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}+\frac {10 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {2 \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5} a \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \,a^{2}}\) | \(511\) |
1/12*(-12*d*x-6*sin(2*d*x+2*c)-cos(3*d*x+3*c)+9*cos(d*x+c)+12*ln(tan(1/2*d *x+1/2*c))+8)/d/a^2
Time = 0.27 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.97 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {2 \, \cos \left (d x + c\right )^{3} + 6 \, d x + 6 \, \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 6 \, \cos \left (d x + c\right ) + 3 \, \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 3 \, \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{6 \, a^{2} d} \]
-1/6*(2*cos(d*x + c)^3 + 6*d*x + 6*cos(d*x + c)*sin(d*x + c) - 6*cos(d*x + c) + 3*log(1/2*cos(d*x + c) + 1/2) - 3*log(-1/2*cos(d*x + c) + 1/2))/(a^2 *d)
\[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\int \frac {\cos ^{6}{\left (c + d x \right )} \csc {\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} + 2 \sin {\left (c + d x \right )} + 1}\, dx}{a^{2}} \]
Leaf count of result is larger than twice the leaf count of optimal. 188 vs. \(2 (71) = 142\).
Time = 0.38 (sec) , antiderivative size = 188, normalized size of antiderivative = 2.58 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {2 \, {\left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {6 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {3 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - 2\right )}}{a^{2} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}}} + \frac {6 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}} - \frac {3 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}}{3 \, d} \]
-1/3*(2*(3*sin(d*x + c)/(cos(d*x + c) + 1) - 6*sin(d*x + c)^2/(cos(d*x + c ) + 1)^2 - 3*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - 2)/(a^2 + 3*a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 3*a^2*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 + a^2*sin(d*x + c)^6/(cos(d*x + c) + 1)^6) + 6*arctan(sin(d*x + c)/(cos(d*x + c) + 1))/a^2 - 3*log(sin(d*x + c)/(cos(d*x + c) + 1))/a^2)/d
Time = 0.32 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.25 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {3 \, {\left (d x + c\right )}}{a^{2}} - \frac {3 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{2}} - \frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{3} a^{2}}}{3 \, d} \]
-1/3*(3*(d*x + c)/a^2 - 3*log(abs(tan(1/2*d*x + 1/2*c)))/a^2 - 2*(3*tan(1/ 2*d*x + 1/2*c)^5 + 6*tan(1/2*d*x + 1/2*c)^2 - 3*tan(1/2*d*x + 1/2*c) + 2)/ ((tan(1/2*d*x + 1/2*c)^2 + 1)^3*a^2))/d
Time = 10.12 (sec) , antiderivative size = 167, normalized size of antiderivative = 2.29 \[ \int \frac {\cos ^5(c+d x) \cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {2\,\mathrm {atan}\left (\frac {4}{4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+4}-\frac {4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+4}\right )}{a^2\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^2\,d}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {4}{3}}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2\right )} \]
(2*atan(4/(4*tan(c/2 + (d*x)/2) + 4) - (4*tan(c/2 + (d*x)/2))/(4*tan(c/2 + (d*x)/2) + 4)))/(a^2*d) + log(tan(c/2 + (d*x)/2))/(a^2*d) + (4*tan(c/2 + (d*x)/2)^2 - 2*tan(c/2 + (d*x)/2) + 2*tan(c/2 + (d*x)/2)^5 + 4/3)/(d*(3*a^ 2*tan(c/2 + (d*x)/2)^2 + 3*a^2*tan(c/2 + (d*x)/2)^4 + a^2*tan(c/2 + (d*x)/ 2)^6 + a^2))